package aor2.cpu.blockcontrol.horizontal;

import java.util.ArrayList;

import aor2.cpu.blockcontrol.MicroMemoryOneType;

public class MMHorizontalType1 extends MicroMemoryOneType {

	private static MMHorizontalType1 singleton = null;
	private ArrayList<MicroInstructionHorizontal> instructions = new ArrayList<MicroInstructionHorizontal>();

	public static MMHorizontalType1 getInstance() {
		if (singleton == null) {
			singleton = new MMHorizontalType1();
		}
		return singleton;
	}

	private MMHorizontalType1() {

		MicroInst1LoaderParser p = new MicroInst1LoaderParser();
		instructions = p.getInstructions();
		for (int i = 0; i < instructions.size(); i++) {
			addMicroInstruction(i, instructions.get(i));
		}

	}
}
